package com.lqq.designPattern.design_principle.依赖倒转原则.after;

public class TestComputer {
    public static void main(String[] args) {

        Computer computer = new Computer();
        HardDisk disk = new XiJieHardDisk();
        Cpu cpu = new IntelCpu();
        Memory memory = new KingstonMemory();

        computer.setHardDisk(disk);
        computer.setCpu(cpu);
        computer.setMemory(memory);

        computer.run();
    }
}